package com.mtwp.dfs.config.dfs;


import com.github.tobato.fastdfs.FdfsClientConfig;
import com.github.tobato.fastdfs.service.FastFileStorageClient;
import com.github.tobato.fastdfs.service.GenerateStorageClient;
import com.github.tobato.fastdfs.service.TrackerClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;

@Configuration
@Import(FdfsClientConfig.class)
// 解决jmx重复注册bean的问题
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class MyFdfsClientConfig {
    /*
    主要接口包括
    TrackerClient - TrackerServer接口
    GenerateStorageClient - 一般文件存储接口 (StorageServer接口)
    FastFileStorageClient - 为方便项目开发集成的简单接口(StorageServer接口)
    AppendFileStorageClient - 支持文件续传操作的接口 (StorageServer接口)
     */
}
